package com.zzl.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzl.common.utils.PageUtils;
import com.zzl.gulimall.product.entity.AttrEntity;
import com.zzl.gulimall.product.vo.AttrEntityVo;
import com.zzl.gulimall.product.vo.AttrRespVo;

import java.util.Map;

/**
 *
 * @author zzl
 * @email zhuangzhongliang@163.com
 * @date 2021-03-10 14:06:58
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrEntityVo attr);

    /**
     * 获取分类规格参数
     * @param params
     * @param catelogId
     * @param type
     * @return
     */
    PageUtils queryAttrGrouplist(Map<String, Object> params, Long catelogId, String type);

    AttrRespVo queryInfo(Long attrId);

    void updateAttr(AttrEntityVo attr);

}

